<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>QuarkJS API Reference - Quark</title>

		<link href="../../css/bootstrap.css" rel="stylesheet">
	    <style type="text/css">
	      body {
	        padding-top: 60px;
	        padding-bottom: 40px;
	      }
	      .sidebar-nav {
	        padding: 9px 0;
	      }
	      .hero-unit {
	        padding: 30px;
	      }
	      .hero-unit p {
	        font-size: 16px;
	      }
	      .hero-unit li {
	        font-size: 16px;
	        line-height: 24px;
	      }
	      .fixedFont{
	      	font-family: courier;
	      }
	    </style>
	    <link href="../../css/bootstrap-responsive.css" rel="stylesheet">

	</head>

	<body>
		<div class="navbar navbar-fixed-top">
		  <div class="navbar-inner">
		    <div class="container-fluid">
		      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		      </a>
		      <a class="brand" href="#">QuarkJS - An HTML5 Game Framework</a>
		      <div class="nav-collapse">
		        <ul class="nav">
		          <li><a href="../../index.html">首页</a></li>
		          <li><a href="http://github.com/quark-dev-team/quarkjs" target="_blank">源码下载</a></li>
		          <li class="active"><a href="../index.html">API文档</a></li>
		          <li><a href="../../tutorial.html">使用指南</a></li>
		          <li><a href="../../demo.html">作品演示</a></li>
		        </ul>
		      </div>
		    </div>
		  </div>
		</div>

		<div class="container-fluid">
      		<div class="row-fluid">
      			<div class="span3">
      				<div class="well sidebar-nav">
<ul class="nav nav-list">
  <li class="nav-header">类列表</li>
  
	<li></li>
	
	<li><a href="../symbols/Audio.html">Audio</a></li>
	
	<li><a href="../symbols/Bitmap.html">Bitmap</a></li>
	
	<li><a href="../symbols/Button.html">Button</a></li>
	
	<li><a href="../symbols/CanvasContext.html">CanvasContext</a></li>
	
	<li><a href="../symbols/Context.html">Context</a></li>
	
	<li><a href="../symbols/DisplayObject.html">DisplayObject</a></li>
	
	<li><a href="../symbols/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
	
	<li><a href="../symbols/DOMContext.html">DOMContext</a></li>
	
	<li><a href="../symbols/Drawable.html">Drawable</a></li>
	
	<li><a href="../symbols/EventDispatcher.html">EventDispatcher</a></li>
	
	<li><a href="../symbols/EventManager.html">EventManager</a></li>
	
	<li><a href="../symbols/Graphics.html">Graphics</a></li>
	
	<li><a href="../symbols/ImageLoader.html">ImageLoader</a></li>
	
	<li><a href="../symbols/MovieClip.html">MovieClip</a></li>
	
	<li><a href="../symbols/Quark.html">Quark</a></li>
	
	<li><a href="../symbols/Stage.html">Stage</a></li>
	
	<li><a href="../symbols/Text.html">Text</a></li>
	
	<li><a href="../symbols/Timer.html">Timer</a></li>
	
	<li><a href="../symbols/Tween.html">Tween</a></li>
	 
</ul>
</div>
      			</div>
      			<div class="span9">

      				<!-- ============================== class title ============================ -->
      				<h1 style="color:#333;">
  					
					Class Quark
      				</h1><br/>

          			<!-- ============================== class summary ========================== -->			
					<p class="description">
						
						
					
						Quark是QuarkJS框架的全局对象，也是框架内部所有类的全局命名空间。在全局Q未被占用的情况下，也可以使用其缩写Q。
						
					</p>

					<!-- ============================== constructor summary ==================== -->			
					
					<h3 style="margin-bottom:6px;">构造函数概览</h3>
					<table class="table table-striped table-bordered table-condensed" cellspacing="0" summary="A summary of the constructor documented in the class Quark.">
						<thead>
							<tr>
								<th scope="col" style="width:10%;"></th>
								<th scope="col">说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td class="attributes">&nbsp;</td>
								<td class="nameDescription" >
									<div class="fixedFont">
										<b><a href="../symbols/Quark.html#constructor">Quark</a></b>()
									</div>
									<div class="description">Quark不是构造函数。</div>
								</td>
							</tr>
						</tbody>
					</table>
					

					<!-- ============================== properties summary ===================== -->
					
					
						
						<h3 style="margin-bottom:6px;">属性概览</h3>
						<table class="table table-striped table-bordered table-condensed" cellspacing="0" summary="A summary of the fields documented in the class Quark.">
							<thead>
								<tr>
									<th scope="col" style="width:10%;"></th>
									<th scope="col">说明</th>
								</tr>
							</thead>
							<tbody>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										Quark.<b><a href="../symbols/Quark.html#.DEG_TO_RAD">DEG_TO_RAD</a></b>
										</div>
										<div class="description">角度转弧度常量。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										Quark.<b><a href="../symbols/Quark.html#.KEY">KEY</a></b>
										</div>
										<div class="description">按钮Key的code映射表。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">
										Quark.<b><a href="../symbols/Quark.html#.RAD_TO_DEG">RAD_TO_DEG</a></b>
										</div>
										<div class="description">弧度转角度常量。</div>
									</td>
								</tr>
							
							</tbody>
						</table>
						
						
						
					

					<!-- ============================== methods summary ======================== -->
					
						
						
						<h3 style="margin-bottom:6px;">方法概览</h3>
						<table class="table table-striped table-bordered table-condensed" cellspacing="0" summary="A summary of the methods documented in the class Quark.">
							<thead>
								<tr>
									<th scope="col" style="width:10%;"></th>
									<th scope="col">说明</th>
								</tr>
							</thead>
							<tbody>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.addMeta">addMeta</a></b>(props)
										</div>
										<div class="description">动态添加meta到head中。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.Audio">Audio</a></b>(src, preload, autoPlay, loop)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.Bitmap">Bitmap</a></b>(props)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.Button">Button</a></b>(props)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.cacheObject">cacheObject</a></b>(obj, toImage, type)
										</div>
										<div class="description">把DisplayObject对象绘制到一个新的画布上。可作为缓存使用，也可转换成dataURL格式的位图。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.CanvasContext">CanvasContext</a></b>(props)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.Context">Context</a></b>(props)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.createDOM">createDOM</a></b>(type, props)
										</div>
										<div class="description">创建一个指定类型type和属性props的DOM对象。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.createDOMDrawable">createDOMDrawable</a></b>(disObj, imageObj)
										</div>
										<div class="description">创建一个可渲染的DOM，可指定tagName，如canvas或div。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.delegate">delegate</a></b>(func, self)
										</div>
										<div class="description">改变func函数的作用域scope，即this的指向。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.DisplayObject">DisplayObject</a></b>(props)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.DisplayObjectContainer">DisplayObjectContainer</a></b>(props)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.DOMContext">DOMContext</a></b>(props)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.Drawable">Drawable</a></b>(drawable, isDOM)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.EventDispatcher">EventDispatcher</a></b>()
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.EventManager">EventManager</a></b>()
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.getDOM">getDOM</a></b>(id)
										</div>
										<div class="description">根据id获得DOM对象。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.getElementOffset">getElementOffset</a></b>(elem)
										</div>
										<div class="description">获取某个DOM元素在页面中的位置偏移量。格式为:{left: leftValue, top: topValue}。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.getUrlParams">getUrlParams</a></b>()
										</div>
										<div class="description">获取URL参数。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.Graphics">Graphics</a></b>(props)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.hitTestObject">hitTestObject</a></b>(obj1, obj2, usePolyCollision)
										</div>
										<div class="description">检测显示对象obj1和obj2是否发生了碰撞。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.hitTestPoint">hitTestPoint</a></b>(obj, x, y, usePolyCollision)
										</div>
										<div class="description">检测显示对象obj是否与点x，y发生了碰撞。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.ImageLoader">ImageLoader</a></b>(source)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.inherit">inherit</a></b>(childClass, parentClass)
										</div>
										<div class="description">Quark框架的继承方法。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.merge">merge</a></b>(obj, props, strict)
										</div>
										<div class="description">把props参数指定的属性或方法复制到obj对象上。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.MovieClip">MovieClip</a></b>(props)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.Stage">Stage</a></b>(props)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.Text">Text</a></b>(props)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.Timer">Timer</a></b>(interval)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.toggleDebugRect">toggleDebugRect</a></b>(stage)
										</div>
										<div class="description">显示或关闭舞台上所有显示对象的外包围矩形。此方法主要用于调试物体碰撞区域等。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.toString">toString</a></b>()
										</div>
										<div class="description">返回Quark的字符串表示形式。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.trace">trace</a></b>()
										</div>
										<div class="description">简单的log方法，同console.log作用相同。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.Tween">Tween</a></b>(target, newProps, params)
										</div>
										<div class="description"></div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&lt;static&gt; &nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont">Quark.<b><a href="../symbols/Quark.html#.use">use</a></b>()
										</div>
										<div class="description">根据限定名称返回一个命名空间（从global开始）。如：Quark.use('Quark.test')。</div>
									</td>
								</tr>
							
							</tbody>
						</table>
						
						
						
					
					<!-- ============================== events summary ======================== -->
					

					<!-- ============================== constructor details ==================== -->		
					
					<div class="details"><a name="constructor"> </a>
						<h3 style="margin-bottom:6px;">构造函数详细信息</h3>
						
						<div class="fixedFont">
								<b>Quark</b>()
						</div>
						
						<div class="description">
							Quark不是构造函数。
							
						</div>
						
						
						
						
							
							
							
							
							
							
							

					</div>
					<hr/>
					

					<!-- ============================== field details ========================== -->		
					
						<h3 style="margin-bottom:6px;">属性详细信息</h3>

						
							<a name=".DEG_TO_RAD"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>DEG_TO_RAD</b>
							
							</div>
							<div class="description">
								角度转弧度常量。
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name=".KEY"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>KEY</b>
							
							</div>
							<div class="description">
								按钮Key的code映射表。
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_event_EventConst.js.html">EventConst.js</a>.
								
								
							</div>
							
							

								
								
								
								

							<hr />
						
							<a name=".RAD_TO_DEG"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>RAD_TO_DEG</b>
							
							</div>
							<div class="description">
								弧度转角度常量。
								
								
							</div>
							
							

								
								
								
								

							
						
						<hr/>
					

					<!-- ============================== method details ========================= -->		
					
						<h3 style="margin-bottom:6px;">方法详细信息</h3>

						
							<a name=".addMeta"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>addMeta</b>(props)
							
							</div>
							<div class="description">
								动态添加meta到head中。
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_utils_Utils.js.html">Utils.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{Object}</span> <b>props</b>
											
										</dt>
										<dd>要添加的meta的属性. 格式如：{name:'viewport', content:'width=device-width'}。</dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".Audio"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>Audio</b>(src, preload, autoPlay, loop)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_utils_Audio.js.html">Audio.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>src</b>
											
										</dt>
										<dd></dd>
									
										<dt>
											<b>preload</b>
											
										</dt>
										<dd></dd>
									
										<dt>
											<b>autoPlay</b>
											
										</dt>
										<dd></dd>
									
										<dt>
											<b>loop</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".Bitmap"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>Bitmap</b>(props)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_display_Bitmap.js.html">Bitmap.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>props</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".Button"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>Button</b>(props)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_display_Button.js.html">Button.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>props</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".cacheObject"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							<span class="light">{Object}</span>
							<span class="light">Quark.</span><b>cacheObject</b>(obj, toImage, type)
							
							</div>
							<div class="description">
								把DisplayObject对象绘制到一个新的画布上。可作为缓存使用，也可转换成dataURL格式的位图。
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_utils_Utils.js.html">Utils.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{<a href="../symbols/DisplayObject.html">DisplayObject</a>}</span> <b>obj</b>
											
										</dt>
										<dd>要缓存的显示对象。</dd>
									
										<dt>
											<span class="light fixedFont">{Boolean}</span> <b>toImage</b>
											
										</dt>
										<dd>指定是否把缓存转为DataURL格式的。默认为false。</dd>
									
										<dt>
											<span class="light fixedFont">{String}</span> <b>type</b>
											
										</dt>
										<dd>指定转换为DataURL格式的图片mime类型。默认为"image/png"。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Object}</span> 显示对象的缓存结果。根据参数toImage不同而返回Canvas或Image对象。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name=".CanvasContext"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>CanvasContext</b>(props)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_context_CanvasContext.js.html">CanvasContext.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>props</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".Context"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>Context</b>(props)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_context_Context.js.html">Context.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>props</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".createDOM"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							<span class="light">{HTMLElement}</span>
							<span class="light">Quark.</span><b>createDOM</b>(type, props)
							
							</div>
							<div class="description">
								创建一个指定类型type和属性props的DOM对象。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{String}</span> <b>type</b>
											
										</dt>
										<dd>指定DOM的类型。比如canvas，div等。</dd>
									
										<dt>
											<span class="light fixedFont">{Object}</span> <b>props</b>
											
										</dt>
										<dd>指定生成的DOM的属性对象。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{HTMLElement}</span> 新生成的DOM对象。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name=".createDOMDrawable"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							<span class="light">{HTMLElement}</span>
							<span class="light">Quark.</span><b>createDOMDrawable</b>(disObj, imageObj)
							
							</div>
							<div class="description">
								创建一个可渲染的DOM，可指定tagName，如canvas或div。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{Object}</span> <b>disObj</b>
											
										</dt>
										<dd>一个DisplayObject或类似的对象。</dd>
									
										<dt>
											<span class="light fixedFont">{Object}</span> <b>imageObj</b>
											
										</dt>
										<dd>指定渲染的image及相关设置，如绘制区域rect。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{HTMLElement}</span> 新创建的DOM对象。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name=".delegate"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							<span class="light">{Function}</span>
							<span class="light">Quark.</span><b>delegate</b>(func, self)
							
							</div>
							<div class="description">
								改变func函数的作用域scope，即this的指向。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{Function}</span> <b>func</b>
											
										</dt>
										<dd>要改变函数作用域的函数。</dd>
									
										<dt>
											<span class="light fixedFont">{Object}</span> <b>self</b>
											
										</dt>
										<dd>指定func函数的作用对象。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Function}</span> 一个作用域为参数self的功能与func相同的新函数。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name=".DisplayObject"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>DisplayObject</b>(props)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_display_DisplayObject.js.html">DisplayObject.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>props</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".DisplayObjectContainer"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>DisplayObjectContainer</b>(props)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_display_DisplayObjectContainer.js.html">DisplayObjectContainer.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>props</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".DOMContext"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>DOMContext</b>(props)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_context_DOMContext.js.html">DOMContext.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>props</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".Drawable"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>Drawable</b>(drawable, isDOM)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_display_Drawable.js.html">Drawable.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>drawable</b>
											
										</dt>
										<dd></dd>
									
										<dt>
											<b>isDOM</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".EventDispatcher"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>EventDispatcher</b>()
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_event_EventDispatcher.js.html">EventDispatcher.js</a>.
								
								
							</div>
							
							
							
								
								
								
								
								
								
								

							<hr />
						
							<a name=".EventManager"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>EventManager</b>()
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_event_EventManager.js.html">EventManager.js</a>.
								
								
							</div>
							
							
							
								
								
								
								
								
								
								

							<hr />
						
							<a name=".getDOM"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							<span class="light">{HTMLElement}</span>
							<span class="light">Quark.</span><b>getDOM</b>(id)
							
							</div>
							<div class="description">
								根据id获得DOM对象。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{String}</span> <b>id</b>
											
										</dt>
										<dd>DOM对象的id。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{HTMLElement}</span> DOM对象。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name=".getElementOffset"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							<span class="light">{Object}</span>
							<span class="light">Quark.</span><b>getElementOffset</b>(elem)
							
							</div>
							<div class="description">
								获取某个DOM元素在页面中的位置偏移量。格式为:{left: leftValue, top: topValue}。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{HTMLElement}</span> <b>elem</b>
											
										</dt>
										<dd>DOM元素。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Object}</span> 指定DOM元素在页面中的位置偏移。格式为:{left: leftValue, top: topValue}。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name=".getUrlParams"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							<span class="light">{Object}</span>
							<span class="light">Quark.</span><b>getUrlParams</b>()
							
							</div>
							<div class="description">
								获取URL参数。
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_utils_Utils.js.html">Utils.js</a>.
								
								
							</div>
							
							
							
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Object}</span> 包含URL参数的键值对对象。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name=".Graphics"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>Graphics</b>(props)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_display_Graphics.js.html">Graphics.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>props</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".hitTestObject"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							<span class="light">{Boolean}</span>
							<span class="light">Quark.</span><b>hitTestObject</b>(obj1, obj2, usePolyCollision)
							
							</div>
							<div class="description">
								检测显示对象obj1和obj2是否发生了碰撞。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{<a href="../symbols/DisplayObject.html">DisplayObject</a>}</span> <b>obj1</b>
											
										</dt>
										<dd>要检测的显示对象。</dd>
									
										<dt>
											<span class="light fixedFont">{<a href="../symbols/DisplayObject.html">DisplayObject</a>}</span> <b>obj2</b>
											
										</dt>
										<dd>要检测的显示对象。</dd>
									
										<dt>
											<span class="light fixedFont">{Boolean}</span> <b>usePolyCollision</b>
											
										</dt>
										<dd>指定是否采用多边形碰撞。默认为false。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Boolean}</span> 发生碰撞为true，否则为false。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name=".hitTestPoint"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							<span class="light">{Number}</span>
							<span class="light">Quark.</span><b>hitTestPoint</b>(obj, x, y, usePolyCollision)
							
							</div>
							<div class="description">
								检测显示对象obj是否与点x，y发生了碰撞。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{<a href="../symbols/DisplayObject.html">DisplayObject</a>}</span> <b>obj</b>
											
										</dt>
										<dd>要检测的显示对象。</dd>
									
										<dt>
											<span class="light fixedFont">{Number}</span> <b>x</b>
											
										</dt>
										<dd>指定碰撞点的x坐标。</dd>
									
										<dt>
											<span class="light fixedFont">{Number}</span> <b>y</b>
											
										</dt>
										<dd>指定碰撞点的y坐标。</dd>
									
										<dt>
											<span class="light fixedFont">{Boolean}</span> <b>usePolyCollision</b>
											
										</dt>
										<dd>指定是否采用多边形碰撞。默认为false。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Number}</span> 如果点x，y在对象obj内为1，在外为-1，在边上为0。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name=".ImageLoader"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>ImageLoader</b>(source)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_utils_ImageLoader.js.html">ImageLoader.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>source</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".inherit"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>inherit</b>(childClass, parentClass)
							
							</div>
							<div class="description">
								Quark框架的继承方法。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{Function}</span> <b>childClass</b>
											
										</dt>
										<dd>子类。</dd>
									
										<dt>
											<span class="light fixedFont">{Function}</span> <b>parentClass</b>
											
										</dt>
										<dd>父类。</dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".merge"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							<span class="light">{Object}</span>
							<span class="light">Quark.</span><b>merge</b>(obj, props, strict)
							
							</div>
							<div class="description">
								把props参数指定的属性或方法复制到obj对象上。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{Object}</span> <b>obj</b>
											
										</dt>
										<dd>Object对象。</dd>
									
										<dt>
											<span class="light fixedFont">{Object}</span> <b>props</b>
											
										</dt>
										<dd>包含要复制到obj对象上的属性或方法的对象。</dd>
									
										<dt>
											<span class="light fixedFont">{Boolean}</span> <b>strict</b>
											
										</dt>
										<dd>指定是否采用严格模式复制。默认为false。</dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Object}</span> 复制后的obj对象。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name=".MovieClip"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>MovieClip</b>(props)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_display_MovieClip.js.html">MovieClip.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>props</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".Stage"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>Stage</b>(props)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_display_Stage.js.html">Stage.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>props</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".Text"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>Text</b>(props)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_display_Text.js.html">Text.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>props</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".Timer"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>Timer</b>(interval)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_utils_Timer.js.html">Timer.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>interval</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".toggleDebugRect"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>toggleDebugRect</b>(stage)
							
							</div>
							<div class="description">
								显示或关闭舞台上所有显示对象的外包围矩形。此方法主要用于调试物体碰撞区域等。
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_utils_Utils.js.html">Utils.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{<a href="../symbols/Stage.html">Stage</a>}</span> <b>stage</b>
											
										</dt>
										<dd>要调试的舞台对象。</dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".toString"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							<span class="light">{String}</span>
							<span class="light">Quark.</span><b>toString</b>()
							
							</div>
							<div class="description">
								返回Quark的字符串表示形式。
								
								
							</div>
							
							
							
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{String}</span> Quark的字符串表示形式。</dd>
									
									</dl>
								
								
								

							<hr />
						
							<a name=".trace"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>trace</b>()
							
							</div>
							<div class="description">
								简单的log方法，同console.log作用相同。
								
								
							</div>
							
							
							
								
								
								
								
								
								
								

							<hr />
						
							<a name=".Tween"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							
							<span class="light">Quark.</span><b>Tween</b>(target, newProps, params)
							
							</div>
							<div class="description">
								
								
									<br />
									<i>Defined in: </i> <a href="../symbols/src/src_base_utils_Tween.js.html">Tween.js</a>.
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<b>target</b>
											
										</dt>
										<dd></dd>
									
										<dt>
											<b>newProps</b>
											
										</dt>
										<dd></dd>
									
										<dt>
											<b>params</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
								
								

							<hr />
						
							<a name=".use"> </a>
							<div class="fixedFont">&lt;static&gt; 
							
							<span class="light">{Object}</span>
							<span class="light">Quark.</span><b>use</b>()
							
							</div>
							<div class="description">
								根据限定名称返回一个命名空间（从global开始）。如：Quark.use('Quark.test')。
								
								
							</div>
							
							
							
								
									<dl class="detailList">
									<dt class="heading">参数:</dt>
									
										<dt>
											<span class="light fixedFont">{String}</span> <b>指定新的命名空间的名称。如Quark.test等。</b>
											
										</dt>
										<dd></dd>
									
									</dl>
								
								
								
								
								
									<dl class="detailList">
									<dt class="heading">返回值:</dt>
									
										<dd><span class="light fixedFont">{Object}</span> 参数name指定的命名空间对象。</dd>
									
									</dl>
								
								
								

							
						
					
					
					<!-- ============================== event details ========================= -->		
					


      			</div>
      		</div>

      		<hr>
      		<footer>
        		<p style="text-align:center;">&copy; QuarkJS Dev-Team 2012</p>
      		</footer>

      	</div>

		<script src="../../js/jquery.js"></script>
    	<script src="../../js/bootstrap.js"></script>

	</body>
</html>
